// 首页的样式
@import 'common';
@baseFont: 50;
* {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}
body {
    min-width: 320px;
    width: 12rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial,Helvetica;
    background: #F2F2F2;
}
// search-content顶部搜索框
.search-content {
    display: flex;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height:( 88rem / @baseFont);
    background-color: #ffc001; 
    z-index: 1;
    .classify {
        width: (44rem / @baseFont);
        height: (70rem / @baseFont);
        background: url(../images/157199320847433454.png) no-repeat;
        background-size: (44rem / @baseFont) (70rem / @baseFont);
        margin: (11rem / @baseFont) (25rem / @baseFont) (7rem / @baseFont) (24rem / @baseFont);
    }
    .search {
        flex: 1;
        input {
            width: 95%;
            height: (66rem / @baseFont);
            border-radius: (33rem / @baseFont);
            background-color: #ffffff;
            margin-top: (12rem / @baseFont);
            font-size: (25rem / @baseFont);
            padding-left: (45rem / @baseFont);
            color: #757575;
            border: none;
            outline: none;
        }
    }
    .login {
        width: (75rem / @baseFont);
        height: (70rem / @baseFont);
        line-height: (70rem / @baseFont);
        font-size: (25rem / @baseFont);
        text-align: center;
        color: #fff;
        margin: (10rem / @baseFont);
        margin-right: (20rem / @baseFont);
        &:hover{
            text-decoration: underline;
        }
    }
}
// sort
.sort {
    width: 15rem;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    &::after {
        content: "";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
    a {
        float: left;
        width: (150rem / @baseFont);
        height: (160rem / @baseFont);
        text-align: center;
        img {
            display: block;
            margin: (12rem / @baseFont) auto;
            width: (80rem / @baseFont);
            height: (82rem / @baseFont);
            margin-top: (16rem / @baseFont);
        }
        span {
            display: block;
            font-size: (25rem / @baseFont);
            color: #333;
        }
    }
}

// banner
.banner {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: (750rem / @baseFont);
    height: (260rem / @baseFont);
    img {
        width: 100%;
        height: 100%;
    }
}
// bottom
.two_wrap {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: (700rem / @baseFont);
    margin: (18rem / @baseFont) auto;
    .left_wrap {
        float: left;
        width: (330rem / @baseFont);
        // background-color: aqua;
        div[class^="left_box"] {
            width: (330rem / @baseFont);
            height: (200rem / @baseFont);
        }
        .left_box1 {
            position: relative;
            border-radius: 25%;
            margin-bottom:(25rem / @baseFont);
            padding: (5rem / @baseFont ) 0 0 (2rem / @baseFont);
            .bg {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .goods {
                float: left;
                display: block;
                position: relative;
                bottom: (-45rem / @baseFont);
                left: (11rem / @baseFont);
                width: (150rem / @baseFont);
                height: (150rem / @baseFont);
                margin-right: 0.2rem;
                img {
                    width: 100%;
                    height: 100%;
                }
                .price {
                    display: block;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    height: 0.56rem;
                    padding: 0 0.28rem;
                    border-radius: 0.56rem;
                    font-size: 0.44rem;
                    white-space: nowrap;
                    line-height: 0.56rem;
                    background: #FFEBEB;
                    color: #FF0000;
                    transform: translate(-50%);
                    -webkit-transform: translate(-50%);
                }
            }
        }
        .left_box2 {
            position: relative;
            border-radius: 25%;
            margin-bottom:(25rem / @baseFont);
            padding: (5rem / @baseFont ) 0 0 (2rem / @baseFont);
            .bg1{
                position: absolute;
                top: 0;
                left: 0;
                width: 50%;
                height: 100%;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .bg2 {
                position: absolute;
                top: 0;
                right: 0;
                width: 50%;
                height: 100%;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .goods1, .goods2 {
                float: left;
                display: block;
                position: relative;
                bottom: (-45rem / @baseFont);
                left: (11rem / @baseFont);
                width: (150rem / @baseFont);
                height: (150rem / @baseFont);
                margin-right: 0.2rem;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .title {
                display: block;
                position: absolute;
                bottom: 0;
                left: 50%;
                height: 0.56rem;
                padding: 0 0.28rem;
                border-radius: 0.56rem;
                font-size: 0.44rem;
                white-space: nowrap;
                line-height: 0.56rem;
                background: #FFF6ED;
                color: #B95A17;
                transform: translate(-50%);
                -webkit-transform: translate(-50%);
            }
        }
        div.left_box3 {
            position: relative;
            border-radius: (15rem / @baseFont);
            margin-bottom:(10rem / @baseFont);
            height: (440rem / @baseFont);
            overflow: hidden;
            .swip {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                .swipgoods {
                    width: 100%;
                    height: 100%;
                    li {
                        width: 100%;
                        height: 100%;
                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
            .swip_trigger{
                position: absolute;
                width:( 100rem / @baseFont);
                height: (20rem / @baseFont);
                line-height: (20rem / @baseFont);
                bottom: 2%;
                left: 50%;
                text-align: center;
                transform: translateX(-50%);
                z-index: 1;
                .trigger {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    li {
                        float: left;
                        width: (20rem / @baseFont);
                        height: (15rem / @baseFont);
                        margin-right: (10rem / @baseFont);
                        border-radius: 50%;
                        background-color: rgba(0, 0, 0, 0.3);
                        &:nth-child(2){
                            background-color: #fff;
                        }
                    }
                }  
            }
        }
    }
    .right_wrap {
        float: right;
        width: (330rem / @baseFont);
        div[class^="right_box"] {
            width: (330rem / @baseFont);
            height: (200rem / @baseFont);
        }
        .right_box1 {
            position: relative;
            border-radius: 25%;
            margin-bottom:(25rem / @baseFont);
            padding: (5rem / @baseFont ) 0 0 (2rem / @baseFont);
            .bg {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .goods {
                float: left;
                display: block;
                position: relative;
                bottom: (-45rem / @baseFont);
                left: (11rem / @baseFont);
                width: (150rem / @baseFont);
                height: (150rem / @baseFont);
                margin-right: 0.2rem;
                .title {
                    position: absolute;
                    top: (-38rem / @baseFont);
                    left: 0;
                    display: block;
                    width: (150rem / @baseFont);
                    line-height: (25rem / @baseFont);
                    text-align: center;
                    font-size: (24rem / @baseFont);
                    font-weight: 700;
                }
                .extra-img {
                    width: (125rem / @baseFont);
                    height: (125rem / @baseFont);
                    margin: auto (15rem / @baseFont);
                }
                img {
                    width: 100%;
                    height: 100%;
                }
                .price {
                    display: block;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    height: 0.56rem;
                    padding: 0 0.28rem;
                    border-radius: 0.56rem;
                    font-size: 0.44rem;
                    white-space: nowrap;
                    line-height: 0.56rem;
                    background: #FFF6ED;
                    color: #B95A17;
                    transform: translate(-50%);
                    -webkit-transform: translate(-50%);
                }
            }
        }

    }
}
// 清除浮动
.two_wrap::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.recommend {
    position: relative;
    top: 0 ;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    min-height: (320rem / @baseFont);
    // background-color: #FF0000;
    img {
        display: block;
        width: 14rem;
        height: 1.2rem;
        margin: auto;
        background: none;
    }
    .goods_list_wrapper {
        width: 15rem;
        background: #F7F7F7;
        .goods_lists {
            width: 15rem;
            margin: 0 auto;
            display: -webkit-flex;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            .goods {
                position: relative;
                box-sizing: border-box;
                width: 6.84rem;
                overflow: hidden;
                border-radius: 0.24rem;
                margin:0.32rem;
                background-color: #FFF;
                height: 10.6rem;
                padding: 0 0 0.28rem 0;
                overflow: hidden;
                // overflow: hidden;
                .imge_wrapper {
                    position: relative;
                    width: 6.84rem;
                    height: 6.84rem;
                    overflow: hidden;
                    img {
                        width: 6.84rem;
                        height: 6.84rem;
                        border-radius: 0.24rem 0.24rem 0 0;
                    }
                }
                .goods_title {
                    margin: 0.36rem auto 0;
                    width: 6.36rem;
                    height: 1.34rem;
                    font-size: 0.52rem;
                    line-height: 0.68rem;
                    font-weight: bold;
                    color: black;
                    
                    overflow: hidden;
                }
                .tag {
                    display: flex;
                    width: 5.38rem;
                    margin: 0.22rem;
                    height: 0.48rem;
                    overflow: hidden;
                    flex-wrap: wrap;
                    img {
                        display: block;
                        margin-right: 4.5rem;
                        width: 0.96rem;
                        height: 0.48rem;
                        margin-bottom: 0.04rem;
                    }
                }
                .goods_price {
                    height: 0.76rem;
                    margin-left: 0.24rem;
                    line-height: 0.76rem;
                    .real_price {
                         display: flex;
                         height: 0.76rem;
                         font-size: 0.48rem;
                         color: #FF4422;
                         font-weight: bold;
                         align-items: flex-end;
                         .flag {
                            line-height: 0.56rem;
                         }
                         .price {
                            font-size: 0.72rem;
                            line-height: 0.72rem;
                         }
                         .price_comment {
                            color: #999999;
                            margin-left: 0.26rem;
                            font-weight: normal;
                            font-size: 0.4rem;
                         }
                    }
                }
            }
        }
        
    }
}

